package org.aeon.client.view.components.sessionPanel;

import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;

/**
 * @author: MissingAeon
 * @date: 2024/2/20 14:01
 * @description:
 */
public class DefaultPanel extends JPanel {
    public DefaultPanel() {
        JLabel label = new JLabel("畅聊");
        label.setFont(new Font("隶书", Font.BOLD, 180));
        // 设置标签水平居中对齐
        label.setHorizontalAlignment(SwingConstants.CENTER);
        // 设置标签垂直居中对齐
        label.setVerticalAlignment(SwingConstants.CENTER);
        // 设置标签前景色为半透明黑色
        label.setForeground(new Color(148, 143, 143, 47));
        // 创建一个空的边框，用于将组件下移
        // 设置上边距为50个像素
        Border emptyBorder = BorderFactory.createEmptyBorder(200, 0, 0, 0);
        label.setBorder(emptyBorder);
        this.add(label);
    }
}
